package com.wuxiaoqin.server.service;

import com.wuxiaoqin.server.entity.Shoppings;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wuxiaoqin.uitls.respObj.RespBean;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jobob
 * @since 2021-11-03
 */
public interface IShoppingsService extends IService<Shoppings> {



    RespBean addCartNum(Integer cartid, Integer num);

    RespBean getCart(Integer userid);

    RespBean delCart(Integer userid, Integer cartid);

    Integer cartTotal(Integer userid);

    RespBean addShopCart(Integer uid, Integer cid, String size, HttpServletRequest request);

    RespBean delCartAll(Integer userid);

    RespBean delCartOne(Integer userid, Integer cartid);

    RespBean isSelected(Integer cartid, Integer uId);

    RespBean noSelected(Integer cartid, Integer uId);

    RespBean ModifyCartNum(Integer userid, Integer cartid, Integer num);
}
